//
// Created by JianFeng Yao on 24-10-8.
//
/*程序2-8：整数除法运算和模运算*/
#include<stdio.h>

//windows 格式化代码的快捷键: ctrl + alt + L
//mac: cmd + option + L

int main(void) {
    int candies, kids;
    printf("请输入糖果和儿童人数：");
    scanf("%d%d", &candies, &kids);
    printf("每人分%d个\n", candies / kids);
    printf("剩余%d个\n", candies % kids);

    return 0;
}
